/* 设置整个内容布局 */
#content_category{
    width: 1200px;
    margin: 0 auto;
}
/* 分类栏导航 */
#category{
    display: flex;
    padding: 10px 0 0 10px;
    color: grey;
    font-size: 14px;
    margin-bottom: 20px;
}
#category > a{
	color: black;
}
/* 设置共有多少商品 */
#category > span{
    color: black;
    margin-left: 50px;
}
#category > span > em{
    color: red;
    font-style: normal;
}
#category > select{
	border: 1px solid  rgb(220,220,220);
}
#category > select > option:focus{
	border:none;
}
#category > p{
	font-size: 13px;
	padding: 2px 5px;
	color: black;
	border: 1px solid rgb(220,220,220);
	cursor: pointer;
	position: relative;
	margin-left: 20px;
	padding-right: 20px;
}
#category > p:before{
	content: '>';
	color: grey;
	font-size: 15px;
	display: block;
	position: absolute;
	left: -15px;
	top: 0;
}
#category > p:after{
	content: '×';
	font-size: 15px;
	display: block;
	position: absolute;
	right: 5px;
	top: 0;
}
#category > p:hover:before{
	color: grey;
}
#category > p:hover{
	border-color: red;
	color: red; 	
}
/* 对分类导航再添加额外的分类 */
#selcet_category{
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid gainsboro;
    border-bottom: 1px solid gainsboro;
}
/* 分类导航里面项目 */
.item_category{
    display: flex;
    flex-direction: row;
    height: 30px;
    border-bottom: 0.5px solid gainsboro;
}
.item_title{
    width: 70px;
    font-size: 14px;
    
    background-color: plum;
    padding: 5px;
    padding-right: 0;
    margin-right: 50px;
}
.item_content{
    width: 975px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}
.item_content > a{
    width: 150px;
    color: black;
    font-size: 14px;
    display: flex;
    padding: 5px;
   
}
.item_content > a:hover{
    color: red;
    text-decoration-line: underline;
}
/* 设置添加按钮的样式 */
.item_category > a{
    color: black;
    font-size: 14px;
    padding: 5px;
}
.item_category > a:hover{
    color: red;
}
/* 设置分页查询 */
#page_book{
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}
#page_book > div{
    width: 100%;
    display: flex;
    margin-bottom: 20px;
}
#category_sort{
    display: flex;
    width:100%;
    justify-content: flex-start;
    border: 1px solid black;
}
#category_sort > li:last-child{
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    padding: 5px 10px;
}
#category_sort > li > a{
    color: black;
    font-size: 14px;
    display: flex;
 
    padding: 5px 10px;
    border-right: 1px dashed black;
}
#category_sort > li > a:hover{
    color: red;
    background-color: rgb(220,220,220);
}
#category_sort > li > a:hover > i{
    display: flex;
    width: 16px;
    height: 18px;
    background: url('../../images/book/arrowRed.png') no-repeat;
    background-size: 16px 15px;
    background-position: 0 3px;
}
/* a被选中 */
#category_sort > li > a[active='1'] > i{
	display: flex;
    width: 16px;
    height: 18px;
    background: url('../../images/book/arrowRed.png') no-repeat;
    background-size: 16px 15px;
    background-position: 0 3px;
}
/* 设置箭头logo */
#category_sort > li > a > i{
    display: flex;
    width: 16px;
    height: 18px;
    background: url('../../images/book/arrow.png') no-repeat;
    background-size: 16px 15px;
    background-position: 0 3px;
}
/* 设置价格的logo */
#category_sort > li:nth-child(5) > a > i{
    display: flex;
    width: 16px;
    height: 18px;
    background-size: 16px 15px;
    background-position: 0 3px;
    background-image: url('../../images/book/normal.png');
    background-repeat: no-repeat;
}
/* 输入价格 */
#input_price{
    display: flex;
    position: relative;
    border-right: 1px dashed black;
}
#input_price > input{
    width: 40px;
    height: 15px;
    padding-left: 16px;
    margin: 5px 10px;
    background: url('../../images/book/rmb.png') no-repeat;
    background-size: 15px 15px;

}
/* 设置确认清除按钮 */
#input_price > div{
    width: 100%;
    height: 200%;
    display: none;
    justify-content: space-around;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid black;
    border-top: 1px solid white;
    background-color: white;
}
#input_price > div:hover{
	display: flex;
}
#input_price > div > button{
    width: 60px;
    height: 30px;
    margin: auto 0;
}
#input_price > input:focus ~ div{
    display: flex;
}
/* 翻页按钮 */
#category_sort > li:last-child{
    width: 100px;
    display: flex;
    flex: auto;
    font-size: 14px;
    
}
#category_sort > li:last-child > button:first-child{
    background-color: grey;
}
#category_sort > li:last-child > button{
	width: 20px;
    color: white;
    background-color: black;
    outline: none;
    border: none;
    cursor: pointer;
}
/* 设置图书内容 */
#category_books{
    display: flex;
    flex-direction: column;
}
/* 设置单个书 */
.category_book{
    display: flex;
    height: 200px;
    padding: 20px 0 20px 20px;
    border: 1px solid black;
    
}
.category_book:hover{
    background-color: rgba(16, 78, 102, 0.1);
}
/* 图书的缩略图 */
.category_book > img{
    width: 200px;
    height: 200px;
    margin-right: 20px;
}
.category_book > div{
    display: flex;
    flex-direction: column;
}
/* 设置标题 */
.category_book > div > a{
    color: black;
    margin-bottom: 10px;
}
.category_book > div > a:hover{
    text-decoration-line: underline;
}
/* 设置价格 */
.price{
    display: flex;
    align-items: flex-end;
    margin-bottom: 5px;
}
.price > span:first-child{
    color: red;
    font-size: 16px;
    font-weight: 600;
    margin-right: 20px;
}
.price > span:first-child > em{
    font-style: normal;
}
.price > span:last-child{
    font-size: 12px;
}
.price > span:last-child > em{
    font-style: normal;
}
.price > span:last-child > em:first-child{
    margin-left: 5px;
    text-decoration-line: line-through;
}
/* 设置评论数 */
.comments{
    font-size: 14px;
    margin-bottom: 5px;
}
.comments > em{
    font-style: normal;
}
/* 设置优惠 */
.extra_sale{
    display: flex;
}
.extra_sale > span{
    width: 35px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-bottom: 5px;
    color: red;
    border: 1px solid red;
    border-radius: 2px;
    margin-right: 5px;
}
.extra_sale > span:not(:first-child){
    width: 18px;
    color: white;
    background-color: red;
}
/* 设置作者、上架时间、出版社 */
.author{
    font-size: 14px;
    margin-bottom: 5px;
}
/* 设置介绍 */
.introduction{
    width: 100%;
    height: 40px;
    font-size: 15px;
    overflow: hidden;
    margin-bottom: 3px;
}
/* 设置购物车和购买 */
.shopping{
    height: 30px;
}
.shopping > button{
    height: 100%;
}